﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DuBaiCoffee2.Model
{
    public class IPorPortInfo
    {
        private static IPorPortInfo instance;
        private IPorPortInfo() { }
        public static IPorPortInfo Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IPorPortInfo();
                }
                return instance;
            }
        }
        /// <summary>
        /// 设备id
        /// </summary>
        public int deviceID { get; set; } = 4;
        /// <summary>
        /// 域名地址
        /// </summary>
        public string url_start { get; set; } = "http://cant2.motonbackend.top/swoft/api/motong/";
        /// <summary>
        /// 咖啡机ip
        /// </summary>
        public string CoffeeIP { get; set; } = "192.168.50.99";
        /// <summary>
        /// 咖啡机端口号
        /// </summary>
        public string CoffeePort { get; set; } = "444";

        /// <summary>
        /// 机械臂左臂ip
        /// </summary>
        public string RobotIPLeft { get; set; } = "192.168.50.10";
        /// <summary>
        /// 机械臂右臂IP
        /// </summary>
        public string RobotIPRight { get; set; } = "192.168.50.20";
        /// <summary>
        /// 打印机IP
        /// </summary>
        public string PrinterCoffeeIP { get; set; } = "192.168.50.102";
        /// <summary>
        /// 打印机端口号
        /// </summary>
        public string PrinterCofferPort { get; set; } = "8888";
        /// <summary>
        /// 其他通讯串口名
        /// </summary>
        public string PortName { get; set; } = "com1";
        /// <summary>
        /// 右臂
        /// </summary>
        public string PortNameR { get; set; } = "com2";
        /// <summary>
        /// 二维码串口名
        /// </summary>
        public string EWMPortName { get; set; } = "com3";
        /// <summary>
        /// 制冰通讯串口名
        /// </summary>
        public string ZBPortName { get; set; } = "com7";

        /// <summary>
        /// 咖啡机通讯串口名
        /// </summary>
        public string CoffeePortName { get; set; } = "com4";
        public int RobotPortLeft { get; set; } = 6502;
        public int RobotPortRight { get; set; } = 6503;
        public double SugarInit1 { get; set; } = 3;
        public double SugarInit2 { get; set; } = 3;
        public double SugarInit3 { get; set; } = 3;
        public double SugarInit4 { get; set; } = 3;
        public double SugarInit5 { get; set; } = 3;
        public double SugarInit6 { get; set; } = 3;
    }
}
